package com.sjm.bookshop.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sjm.bookshop.entity.CountOfMonth;
import com.sjm.bookshop.entity.Orders;
import com.sjm.bookshop.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Orders> {

    List<Orders> selectList(@Param("i") int i);

    List<User> selectAllOrderList();

    int Confirm(@Param("orderFId") String orderFId);

    int delOrderByOrderId(@Param("orderFId") String orderFId);

    int delOdByOrderId(@Param("orderFId") String orderFId);

    int updateOrder(Orders orders);

    void updatebyPayOrder(Orders orders);

    List<CountOfMonth> getData();

    List<CountOfMonth> listByLateDays();

    Integer ThirtyDayslist();

    List<CountOfMonth> daysCount();
}
